# -*- encoding=utf8 -*-
__author__ = "Simon"

from airtest.core.api import *
# import sys
# sys.path.append("..")
from poco.drivers.unity3d import UnityPoco
poco = UnityPoco()
using("../main.air")
import main

def shop2():
    #获取旋转后的分辨率
    x,y=device().get_current_resolution()
    sleep(1)
    main.judge_sheet(x,y)
    sleep(1)
    main.shop_entry(x,y)
    sleep(2)
    touch([0.4*x,0.28*y])
    touch([0.58*x,0.28*y])
    touch([0.76*x,0.28*y])
    touch([0.935*x,0.28*y])
    touch([0.82*x,0.81*y])
    sleep(1)
    main.cilck_blue_ok()
    sleep(2)
    main.cilck_blue_ok()
    sleep(2)
    touch([0.03*x,0.06*y])
    sleep(1)